#include <stdio.h>
#include <stdlib.h>

int unval;
int gval = 100;
int main()
{
  printf("code addr: %p\n", main);
  printf("gval addr:%p \n",&gval);
  printf("unval addr:%p\n",&unval);

  int *mem = (int*)malloc(10*sizeof(int));
  printf("heap addr:%p\n",mem);

  int a,b,c;
  printf("stack addr:%p\n",&a);
  printf("stack addr:%p\n",&b);
  printf("stack addr:%p\n",&c);
  return 0;
}
